package com.fortune.dto.in.dOrder;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import com.fortune.constants.enums.OrderDetailType;

import io.swagger.annotations.ApiModelProperty;

public class DOrderDetailAddDto {
	@ApiModelProperty(example="序号")
	private int no;
	@NotNull(message="分类不能为空")
	@ApiModelProperty(example="分类(XS销售ZS赠送)")
	private OrderDetailType orderDetailType;
	@NotBlank(message="商品id不能为空")
	@ApiModelProperty(example="商品id")
	private String productId;
	@ApiModelProperty(example="订货数量")
	private int orderNum;
	@ApiModelProperty(example="回空箱数量")
	private int backBoxNum;
	@ApiModelProperty(example="备注")
	private String memo;
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public OrderDetailType getOrderDetailType() {
		return orderDetailType;
	}
	public void setOrderDetailType(OrderDetailType orderDetailType) {
		this.orderDetailType = orderDetailType;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}
	public int getBackBoxNum() {
		return backBoxNum;
	}
	public void setBackBoxNum(int backBoxNum) {
		this.backBoxNum = backBoxNum;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	@Override
	public String toString() {
		return "DOrderDetailAddDto [no=" + no + ", orderDetailType=" + orderDetailType + ", productId=" + productId
				+ ", orderNum=" + orderNum + ", backBoxNum=" + backBoxNum + ", memo=" + memo + "]";
	}
}
